package Summative;

import java.awt.Dimension;
import javax.swing.JFrame;

public class MainFrame extends JFrame
{
	public MainFrame()
	{
		super();
		setPreferredSize(new Dimension(500, 500));
		this.pack();

		Menu menu = new Menu();
		setJMenuBar(menu);

		MainPanel panel = new MainPanel(menu);
		add(panel);

		setVisible(true);
	}
	public static void main(String[] args)
	{
		MainFrame frame = new MainFrame();
	}

}
